package backend.com.zyc.model;

import org.apache.log4j.Logger;

import backend.com.zyc.bean.TestBean;
import backend.com.zyc.comm.service.BasicModel;
import backend.com.zyc.dao.ITestDao;
import backend.com.zyc.util.log4j.Log;

public class TestModel extends BasicModel{

	private ITestDao testDao;
	public TestModel() {
		this.testDao = (ITestDao) daoMgr.getDao(ITestDao.class);
	}
	
	public TestBean getTestBean(String param) {
		return testDao.getTestBean(param);
	}
	

	public static void main(String[] args) {
		TestModel service = new TestModel();
		TestBean testBean = service.getTestBean("zyc");
		if(testBean != null) {
			System.out.println(testBean.getAddr());
			Logger logger = Log.getLogger(TestModel.class);
			logger.info("Test log:" + testBean.getAddr());
		}
	}
}

